package com.zhonghui.modlules.user.eshopParam;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

public class AddressDetailParam implements Serializable {
    @JsonProperty("city_id")
    @ApiModelProperty("城市ID")
    private Integer cityId;
    @ApiModelProperty("城市")
    private String city;
    @ApiModelProperty("地区")
    private String district;
    @ApiModelProperty("省份")
    private String province;

    public AddressDetailParam() {
    }

    public Integer getCityId() {
        return this.cityId;
    }

    public String getCity() {
        return this.city;
    }

    public String getDistrict() {
        return this.district;
    }

    public String getProvince() {
        return this.province;
    }

    @JsonProperty("city_id")
    public void setCityId(final Integer cityId) {
        this.cityId = cityId;
    }

    public void setCity(final String city) {
        this.city = city;
    }

    public void setDistrict(final String district) {
        this.district = district;
    }

    public void setProvince(final String province) {
        this.province = province;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof AddressDetailParam)) {
            return false;
        } else {
            AddressDetailParam other = (AddressDetailParam)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$cityId = this.getCityId();
                    Object other$cityId = other.getCityId();
                    if (this$cityId == null) {
                        if (other$cityId == null) {
                            break label59;
                        }
                    } else if (this$cityId.equals(other$cityId)) {
                        break label59;
                    }

                    return false;
                }

                Object this$city = this.getCity();
                Object other$city = other.getCity();
                if (this$city == null) {
                    if (other$city != null) {
                        return false;
                    }
                } else if (!this$city.equals(other$city)) {
                    return false;
                }

                Object this$district = this.getDistrict();
                Object other$district = other.getDistrict();
                if (this$district == null) {
                    if (other$district != null) {
                        return false;
                    }
                } else if (!this$district.equals(other$district)) {
                    return false;
                }

                Object this$province = this.getProvince();
                Object other$province = other.getProvince();
                if (this$province == null) {
                    if (other$province != null) {
                        return false;
                    }
                } else if (!this$province.equals(other$province)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof AddressDetailParam;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $cityId = this.getCityId();
        result = result * 59 + ($cityId == null ? 43 : $cityId.hashCode());
        Object $city = this.getCity();
        result = result * 59 + ($city == null ? 43 : $city.hashCode());
        Object $district = this.getDistrict();
        result = result * 59 + ($district == null ? 43 : $district.hashCode());
        Object $province = this.getProvince();
        result = result * 59 + ($province == null ? 43 : $province.hashCode());
        return result;
    }

    public String toString() {
        return "AddressDetailParam(cityId=" + this.getCityId() + ", city=" + this.getCity() + ", district=" + this.getDistrict() + ", province=" + this.getProvince() + ")";
    }
}

